home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / wild / include / inline / wild.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  5KB  |  171 lines

  1. #ifndef _INLINE_WILD_H
  2. #define _INLINE_WILD_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef WILD_BASE_NAME
  9. #define WILD_BASE_NAME WildBase
  10. #endif
  11.  
  12. #define AddWildApp(wildPort, tagList) \
  13.     LP2(0x1E, struct     WildApp     *, AddWildApp, struct MSGPort *, wildPort, a0, struct TagItem *, tagList, a1, \
  14.     , WILD_BASE_NAME)
  15.  
  16. #ifndef NO_INLINE_STDARG
  17. #define AddWildAppTags(wildPort, tags...) \
  18.     ({ULONG _tags[] = {tags}; AddWildApp((wildPort), (struct TagItem *) _tags);})
  19. #endif
  20.  
  21. #define RemWildApp(wildApp) \
  22.     LP1NR(0x24, RemWildApp, struct WildApp *, wildApp, a0, \
  23.     , WILD_BASE_NAME)
  24.  
  25. #define LoadModule(type, name) \
  26.     LP2(0x2A, struct    WildModule    *, LoadModule, char *, type, a0, char *, name, a1, \
  27.     , WILD_BASE_NAME)
  28.  
  29. #define KillModule(module) \
  30.     LP1NR(0x30, KillModule, struct WildModule *, module, a1, \
  31.     , WILD_BASE_NAME)
  32.  
  33. #define SetWildAppTags(wildApp, tagList) \
  34.     LP2NR(0x36, SetWildAppTags, struct WildApp *, wildApp, a0, struct TagItem *, tagList, a1, \
  35.     , WILD_BASE_NAME)
  36.  
  37. #ifndef NO_INLINE_STDARG
  38. #define SetWildAppTagsTags(wildApp, tags...) \
  39.     ({ULONG _tags[] = {tags}; SetWildAppTags((wildApp), (struct TagItem *) _tags);})
  40. #endif
  41.  
  42. #define GetWildAppTags(wildApp, tagList) \
  43.     LP2NR(0x3C, GetWildAppTags, struct WildApp *, wildApp, a0, struct TagItem *, tagList, a1, \
  44.     , WILD_BASE_NAME)
  45.  
  46. #ifndef NO_INLINE_STDARG
  47. #define GetWildAppTagsTags(wildApp, tags...) \
  48.     ({ULONG _tags[] = {tags}; GetWildAppTags((wildApp), (struct TagItem *) _tags);})
  49. #endif
  50.  
  51. #define AddWildThread(wildApp, tagList) \
  52.     LP2(0x42, struct     WildThread    *, AddWildThread, struct WildApp *, wildApp, a0, struct TagItem *, tagList, a1, \
  53.     , WILD_BASE_NAME)
  54.  
  55. #ifndef NO_INLINE_STDARG
  56. #define AddWildThreadTags(wildApp, tags...) \
  57.     ({ULONG _tags[] = {tags}; AddWildThread((wildApp), (struct TagItem *) _tags);})
  58. #endif
  59.  
  60. #define RemWildThread(Thread) \
  61.     LP1NR(0x48, RemWildThread, struct WildThread *, Thread, a0, \
  62.     , WILD_BASE_NAME)
  63.  
  64. #define AllocVecPooled(size, Pool) \
  65.     LP2(0x4E, ULONG            *, AllocVecPooled, ULONG, size, d0, ULONG *, Pool, a0, \
  66.     , WILD_BASE_NAME)
  67.  
  68. #define FreeVecPooled(memory) \
  69.     LP1NR(0x54, FreeVecPooled, ULONG *, memory, a1, \
  70.     , WILD_BASE_NAME)
  71.  
  72. #define RealyzeFrame(wildApp) \
  73.     LP1NR(0x5A, RealyzeFrame, struct WildApp *, wildApp, a0, \
  74.     , WILD_BASE_NAME)
  75.  
  76. #define InitFrame(wildApp) \
  77.     LP1NR(0x60, InitFrame, struct WildApp *, wildApp, a0, \
  78.     , WILD_BASE_NAME)
  79.  
  80. #define DisplayFrame(wildApp) \
  81.     LP1NR(0x66, DisplayFrame, struct WildApp *, wildApp, a0, \
  82.     , WILD_BASE_NAME)
  83.  
  84. #define LoadTable(id, name) \
  85.     LP2(0x6C, struct    WildTable    *, LoadTable, ULONG, id, d0, char *, name, a0, \
  86.     , WILD_BASE_NAME)
  87.  
  88. #define KillTable(table) \
  89.     LP1NR(0x72, KillTable, struct WildTable *, table, a1, \
  90.     , WILD_BASE_NAME)
  91.  
  92. #define LoadFile(offset, name, pool) \
  93.     LP3(0x78, ULONG, LoadFile, ULONG, offset, d0, char *, name, d1, ULONG *, pool, a0, \
  94.     , WILD_BASE_NAME)
  95.  
  96. #define LoadExtension(name, version) \
  97.     LP2(0x7E, struct     WildExtension    *, LoadExtension, char *, name, a1, ULONG, version, d0, \
  98.     , WILD_BASE_NAME)
  99.  
  100. #define KillExtension(extension) \
  101.     LP1NR(0x84, KillExtension, struct WildExtension *, extension, a1, \
  102.     , WILD_BASE_NAME)
  103.  
  104. #define FindWildApp(tagList) \
  105.     LP1(0x8A, struct    WildApp        *, FindWildApp, struct TagItem *, tagList, a0, \
  106.     , WILD_BASE_NAME)
  107.  
  108. #ifndef NO_INLINE_STDARG
  109. #define FindWildAppTags(tags...) \
  110.     ({ULONG _tags[] = {tags}; FindWildApp((struct TagItem *) _tags);})
  111. #endif
  112.  
  113. #define BuildWildObject(tagList) \
  114.     LP1(0x90, ULONG            *, BuildWildObject, struct TagItem *, tagList, a0, \
  115.     , WILD_BASE_NAME)
  116.  
  117. #ifndef NO_INLINE_STDARG
  118. #define BuildWildObjectTags(tags...) \
  119.     ({ULONG _tags[] = {tags}; BuildWildObject((struct TagItem *) _tags);})
  120. #endif
  121.  
  122. #define FreeWildObject(object) \
  123.     LP1NR(0x96, FreeWildObject, ULONG *, object, a0, \
  124.     , WILD_BASE_NAME)
  125.  
  126. #define LoadWildObject(wildApp, tagList) \
  127.     LP2(0x9C, ULONG            *, LoadWildObject, struct WildApp *, wildApp, a0, struct TagItem *, tagList, a1, \
  128.     , WILD_BASE_NAME)
  129.  
  130. #ifndef NO_INLINE_STDARG
  131. #define LoadWildObjectTags(wildApp, tags...) \
  132.     ({ULONG _tags[] = {tags}; LoadWildObject((wildApp), (struct TagItem *) _tags);})
  133. #endif
  134.  
  135. #define GetWildObjectChild(object, childtype, number) \
  136.     LP3(0xA2, ULONG            *, GetWildObjectChild, ULONG *, object, a0, ULONG, childtype, d0, ULONG, number, d1, \
  137.     , WILD_BASE_NAME)
  138.  
  139. #define SaveWildObject(wildApp, tagList) \
  140.     LP2(0xA8, ULONG            *, SaveWildObject, struct WildApp *, wildApp, a0, struct TagItem *, tagList, a1, \
  141.     , WILD_BASE_NAME)
  142.  
  143. #ifndef NO_INLINE_STDARG
  144. #define SaveWildObjectTags(wildApp, tags...) \
  145.     ({ULONG _tags[] = {tags}; SaveWildObject((wildApp), (struct TagItem *) _tags);})
  146. #endif
  147.  
  148. #define DoAction(wildApp, tagList) \
  149.     LP2(0xAE, struct    WildDoing    *, DoAction, struct WildApp *, wildApp, a0, struct TagItem *, tagList, a1, \
  150.     , WILD_BASE_NAME)
  151.  
  152. #ifndef NO_INLINE_STDARG
  153. #define DoActionTags(wildApp, tags...) \
  154.     ({ULONG _tags[] = {tags}; DoAction((wildApp), (struct TagItem *) _tags);})
  155. #endif
  156.  
  157. #define Animate(wildApp, tagList) \
  158.     LP2NR(0xB4, Animate, struct WildApp *, wildApp, a0, struct TagItem *, tagList, a1, \
  159.     , WILD_BASE_NAME)
  160.  
  161. #ifndef NO_INLINE_STDARG
  162. #define AnimateTags(wildApp, tags...) \
  163.     ({ULONG _tags[] = {tags}; Animate((wildApp), (struct TagItem *) _tags);})
  164. #endif
  165.  
  166. #define AbortAction(Doing) \
  167.     LP1NR(0xBA, AbortAction, struct WildDoing *, Doing, a0, \
  168.     , WILD_BASE_NAME)
  169.  
  170. #endif /*  _INLINE_WILD_H  */
  171.